package com.hmkj.core.po.order;

import com.alibaba.fastjson.annotation.JSONField;
import com.hmkj.common.baseMapper.GenericPo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.util.Date;
import java.util.function.Consumer;


/**
 * 操作日志表实体信息<br>
 *
 * @author eproo
 * @date   2018-07-10 02:16:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "操作日志表")
@Table(name = "biz_order_operation")
public class OrderOperation extends GenericPo<Integer> {

    public static final String TABLE_NAME = "biz_order_operation";

	
	/**订单ID**/
	@ApiModelProperty(value = "订单ID")
	private Integer orderId;
	/**操作**/
	@ApiModelProperty(value = "操作")
	private String operation;
	/**操作日期**/
	@ApiModelProperty(value = "操作日期")
	@JSONField(format="yyyy-MM-dd HH:mm:ss")
	private Date operationTime;
	/**备注**/
	@ApiModelProperty(value = "备注")
	private String remark;

    public OrderOperation(){}

    public OrderOperation(Consumer<OrderOperation> consumer){
    consumer.accept(this);
    }
}

